﻿using System;

namespace DataScripter.Scripting.Output.Sql
{
    public class SqlScriptOutputContext : OutputContext
    {
        private readonly IVariableContext _variableContext = new VariableContext();

        public override T Get<T>()
        {
            switch(typeof(T).Name)
            {
                case "IVariableContext": return (T) _variableContext;

                default: throw new ArgumentOutOfRangeException("", "Type unknown or cannot be retrieved: " + typeof(T).FullName);
            }
        }
    }
}
